{% extends "base.html" %}
{% load promgen %}
{% block content %}

<div class="page-header" v-pre>
  <h1>{{ view.button_label }}</h1>
</div>

{% breadcrumb service label=view.button_label %}

{% if service %}
<div class="alert alert-danger" role="alert">
  Warning. Renaming or Moving a service will reset all labels in Prometheus
</div>
{% endif %}

<div class="panel panel-default" v-pre>
  <form action="" method="post">{% csrf_token %}
    <table class="table">
      {{ form.as_table }}
    </table>
    <div class="panel-footer">
      <button class="btn btn-primary">{{ view.button_label }}</button>
    </div>
  </form>
</div>

{% endblock %}
